package cn.middle.remote.handler.business;

import cn.middle.remote.message.BaseSignal;
import io.netty.channel.ChannelHandlerContext;

public interface ProcessingHandler {
	
	/**
	 * 激活
	 */
	public void channelActive(ChannelHandlerContext ctx) throws Exception ;
	
	/**
	 * 断开
	 */
	public void channelInactive(ChannelHandlerContext ctx) throws Exception;

	/**
	 * 读取消息
	 */
	public void received(ChannelHandlerContext ctx, BaseSignal msg) throws Exception ;
	
	/**
	 * 发生异常
	 */
	public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception ;
	



}
